<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">  
  <title>搜索</title>
 </head>
 <body>
<form method="post" action="detail.php" enctype="multipart/form-data" >
<?php
   require_once('system/dbconn.php');
   require_once('system/myfun.php');
  connect();
  $sql = "select * from flower "; 
  if($_POST)
  {
	  $key = $_POST['key'];
	  $sql = $sql." where GL_title like '%{$key}%' ";
  }
  $result = fetch_array($sql);    
 ?>
 <table align="center" width="80%">
 <tr><td  align="left" >
 <form method=post action="">
    请输入鲜花名关键字：
	<input type="text" name="key">
	<input type="submit" name='search' value="搜索">
 </form> 
 </td></tr>
</body>
</html>